﻿using personalplaner.common.mvvm.factory;
using personalplaner.gui.common;
using personalplaner.servicemodel.dataaccess;

namespace personalplaner.gui.mainview.viewmodels.factories
{
	public class ViewControlerModelFactory : IFactory
	{
		#region IFactory Members

		public object CreateViewModel(System.Windows.DependencyObject sender)
		{
			var vm = new ViewControlerViewModel(sender);

            //vm.ServiceLocator.RegisterService<IDiensteDataAccess>(new DiensteDataAccess(SettingsProvider.Settings));
            //vm.ServiceLocator.RegisterService<IPlanDataAccess>(new PlanDataAccess(SettingsProvider.Settings));

			return vm;
		}

		#endregion
	}
}
